﻿namespace Ganss.Excel.Tests.Data
{
    class BeforeAfterMapping
    {
        public string Name { get; set; }
        public int Number { get; set; }
        public decimal Price { get; set; }
        public string Value { get; set; }

        public int Id { get; set; }
        public string Hash { get; set; }

        public override bool Equals(object obj) =>
            obj is BeforeAfterMapping o
            && o.Name == Name
            && o.Number == Number
            && o.Price == Price
            && o.Value == Value
            && o.Id == Id
            && o.Hash == Hash
        ;

        public override int GetHashCode() =>
            $"{Name}{Number}{Price}{Value}{Id}{Hash}".GetHashCode();
    }
}